<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="FRL" Namespace="FourRoads.Links.Controls" Assembly="FourRoads.Links" %>
<%@ Import Namespace="FourRoads.Links.Controls" %>
<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
		<div class="linkPost" runat="server" id="mainLinkHolder">
			<div class="linkPostTitle">
				<span width="100%">
					<asp:hyperlink CssClass="linkPostHyperlink" id="Title" runat="server" Target="_blank"></asp:hyperlink>
					<div style="display:inline"><FRL:ResLinkRateLink runat="server" ID="LinkRating" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/"/>
					<asp:Literal Runat="server" ID="HitCounter"></asp:Literal>
					<asp:PlaceHolder ID="MyCustomPropsView" Runat="server"></asp:PlaceHolder>
					</div>
				</span>
				<div class="linkPostActions">
					<asp:LinkButton class="CommonTextButton" id="DisplayComments" runat="server">Toggle Comments</asp:LinkButton>
					<FRL:ModalLink CssClass="CommonTextButton" ModalType="Link" Height="250" Width="500" runat="Server" resourcename="ResLinksLink_AddComment" Callback="linkCommentAdded" id="AddCommentBtn" Url="#"/>
					<FRL:LinkModeration innerbuttoncssclass="CommonButtonInnerContentDown" ID="LinkModeration" Runat="server"  activebuttoncssclass="CommonTextButtonHighlight" inactivebuttoncssclass="CommonTextButton" />
					<a class="CommonTextButton" id="ReportBroken" runat="server" href="#">
						<FRL:ResourceLabel id="Resourcelabel2"  resourceFile="ResLinkResources.xml" resourcename="ResLinkSectionView_BrokenLink" runat="server"></FRL:ResourceLabel>
					</a>					
				</div>
			</div>
			<div class="linkPostContent">
				<asp:literal id="Description" runat="server"></asp:literal></div>
			<div class="linkPostfoot">
		
			</div>
			<div class="linkComments" id="LinkCommentDisplay" runat="server" style="display:none;">
			<CA:CallBack id="LinkCommentsCallback" CacheContent="false" runat="server" >
					<Content>
						<FRL:StatusMessage runat="server" id="CommentReceived" Visible="false" Success="true" ResourceFile="ResLinkResources.xml" ResourceName="ResLinkInsert_CommentSubmited" />
						<asp:repeater id="CommentRepeater" runat="server">
							<ItemTemplate>
							<div class="linkComment">
								<div class="linkCommentRating"><FRL:ResLinkCommentRateLink runat="server" ID="CommentRating" EnableUserRating="false" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/"/></div>
								<div class="linkCommentText"><asp:literal id="LinkComment" runat="server"></asp:literal></div>
								<div class="linkCommentUser" style="display:inline;float:left;padding-bottom:3px;"><asp:Hyperlink id="LinkCommentUser" runat="server"></asp:Hyperlink></div>
								<div class="linkCommentFooter" style="text-align:right;padding-bottom:3px;">
								<FRL:CommentModeration innerbuttoncssclass="CommonButtonInnerContentDown" ID="CommentModeration" Runat="server"  activebuttoncssclass="CommonTextButtonHighlight" inactivebuttoncssclass="CommonTextButton" />
								</div>
							</div>
							</ItemTemplate>
						</asp:repeater>
					</Content>
					<LoadingPanelClientTemplate>
						Loading...<img src = "/utility/spinner.gif" />
					</LoadingPanelClientTemplate>
				</CA:CallBack>
			</div>	
			<div style="clear:both;"></div>
		</div>
	</itemtemplate>
